import request from '@/utils/request.js'
// 获得面试技巧的信息
export function articlesTechnic (params) {
  return request({
    url: '/articles/technic',
    params
  })
}

// 获取统计信息接口
export function chartDataStatistics (data) {
  return request({
    url: '/chart-data/statistics',
    data
  })
}
// 获取面经列表信息接口
export function articlesShare (params) {
  return request({
    url: '/articles/share',
    params
  })
}

// 获取面经详情信息接口
export function articlesShareId (id) {
  return request({
    url: '/articles/share/' + id
  })
}
// 获取点赞文章信息接口
export function articlesStar (data) {
  return request({
    url: '/articles/star',
    method: 'post',
    data,
    needToken: true
  })
}
// 获取面经评论信息接口
export function articlesCommentsId (params) {
  return request({
    url: '/articles/comments/' + params.id,
    params
  })
}
// 获取面经热搜接口
export function articlesShareTopSearch () {
  return request({
    url: '/articles/shareTopSearch'
  })
}

// 获取面试技巧热搜接口
export function articlesTechnicTopSearch () {
  return request({
    url: '/articles/technicTopSearch'
  })
}

// 获取发表评论接口
export function articlesComments (data) {
  return request({
    url: '/articles/comments',
    method: 'post',
    data,
    needToken: true
  })
}

// 获得面试技巧详情的信息
export function articlesTechnicId (id) {
  return request({
    url: '/articles/technic/' + id
  })
}
